//---------------------------------------------------------------------------

#ifndef PRIEM_ZAYH
#define PRIEM_ZAYH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "Fr_Adres.h"
#include <DBGrids.hpp>
#include <Grids.hpp>
#include "cxClasses.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxDBData.hpp"
#include "cxFilter.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridDBTableView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxStyles.hpp"
#include <DB.hpp>
#include <Buttons.hpp>
#include "cxRadioGroup.hpp"
#include "Fr_POISK.h"
#include "F_SOST_NZAD.h"
#include "frxClass.hpp"
#include "frxDBSet.hpp"
#include <ActnList.hpp>
#include <Menus.hpp>
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrPRIEM_ZAY : public TForm
{
__published:	// IDE-managed Components
	TPanel *pMain;
	TPageControl *pcMain;
	TTabSheet *tabsPRIEM_ZAY;
	TTabSheet *TabPOISK;
	TPanel *pPriem_Z;
	TcxGroupBox *gbAdres;
	TFrame_Adres *Frame_Adres1;
	TStatusBar *sb;
	TGroupBox *gbLIC;
	TLabel *Label1;
	TLabel *Label2;
	TEdit *edNOM;
	TEdit *edFIO;
	TGroupBox *GroupBox1;
	TLabel *Label3;
	TLabel *Label4;
	TEdit *edDOM;
	TEdit *edKV;
	TBitBtn *bbtRefresh;
	TcxGroupBox *gbTables;
	TcxGrid *sgSPR_ABON;
	TcxGridDBTableView *sgSPR_ABONDBTableView1;
	TcxGridDBColumn *sgSPR_ABONDBTableView1KOD;
	TcxGridDBColumn *sgSPR_ABONDBTableView1NAIM;
	TcxGridDBColumn *sgSPR_ABONDBTableView1Column1;
	TcxGridDBColumn *sgSPR_ABONDBTableView1Column2;
	TcxGridDBColumn *sgSPR_ABONDBTableView1Column3;
	TcxGridDBColumn *sgSPR_ABONDBTableView1Column4;
	TcxGridDBColumn *sgSPR_ABONDBTableView1Column5;
	TcxGridDBColumn *sgSPR_ABONDBTableView1Column6;
	TcxGridDBColumn *sgSPR_ABONDBTableView1Column7;
	TcxGridLevel *sgSPR_ABONLevel1;
	TPanel *pPOISK;
	TFrame_POISK *Frame_POISK1;
	TTabSheet *TabNariad_Zad;
	TPageControl *pNaria_Zad;
	TTabSheet *TabSost_NZad;
	TPanel *pSOST_ZAD;
	TFrame_SOST_NZAD *Frame_SOST_NZAD1;
	TLabel *Label5;
	TfrxReport *frxSOST_NZ;
	TfrxDBDataset *frxDBSost_NZ;
	TActionList *ActionList1;
	TAction *PRINT_SOST_NZ;
	TPopupMenu *pm;
	TMenuItem *pmPribor;
	TCheckBox *cbBAL_GAZ;
	TcxGridDBColumn *VID_GAZA;
	TIBCQuery *dsetSPR_ABON;
	TIBCDataSource *dsSPR_ABON;
	void __fastcall tabsPRIEM_ZAYShow(TObject *Sender);
	void __fastcall edNOMKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall Frame_Adres1cbULClick(TObject *Sender);
	void __fastcall edDOMKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall edKVKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall bbtRefreshClick(TObject *Sender);
	void __fastcall edFIOKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall FormKeyPress(TObject *Sender, char &Key);
	void __fastcall FormKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall sgSPR_ABONDBTableView1DblClick(TObject *Sender);
	void __fastcall sgSPR_ABONDBTableView1KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall TabPOISKShow(TObject *Sender);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall TabNariad_ZadShow(TObject *Sender);
	void __fastcall PRINT_SOST_NZExecute(TObject *Sender);
	void __fastcall pmPriborClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
	__fastcall TfrPRIEM_ZAY(TComponent* Owner);
	void __fastcall TfrPRIEM_ZAY::POISK(int TIP, int NOM,int PUNKT,int VU, int UL,String DOM, String KV,String FIO);
	void __fastcall TfrPRIEM_ZAY::Obnovi();
	void __fastcall TfrPRIEM_ZAY::ZAP_ZAYVKI();
	};
//---------------------------------------------------------------------------
extern PACKAGE TfrPRIEM_ZAY *frPRIEM_ZAY;
//---------------------------------------------------------------------------
#endif
